<script type="javascript" src="/statics/js/dateFormat.js"></script>
<!-- START DEFAULT DATATABLE -->
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">意见反馈</h3>
    </div>
    <div class="panel-heading">
        <form action="/admin/option/manageUserOption.jspa" id="qForm">
            <div class="row">
                <div class="col-md-2">
                    <div class="input-group">
                        <input class="form-control" type="text" id="qVal" name="qVal" value="${param.qVal}"
                               placeholder="姓名、手机号"/>
                    </div>
                </div>
            </div>

            <div class="pull-right">
                <button type="button" class="btn btn-info" onclick="searchOrders()">搜索</button>
            </div>
        </form>
    </div>
    <div class="panel-body">
        <table class="table">
            <thead>
            <tr>
                <th>姓名</th>
                <th>部门</th>
                <th>手机号</th>
                <th>提出时间</th>
                <th>反馈内容</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${options}" var="o">
                <tr class="foo">
                    <td>${o.name}</td>
                    <td>${o.deptName}</td>
                    <td>${o.phone}</td>
                    <td class="addTime" data-val="${o.addTime}"></td>
                    <td>${o.content}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <c:out value="${pagingString}" escapeXml="false"/>
    </div>

</div>
<!-- END DEFAULT DATATABLE -->
<!-- START SCRIPTS -->
<script>
    $(function () {
        $.each($('td.addTime'), function (index, item) {
            var s = $(item).attr('data-val');
            if (s != undefined && s != "") {
                $(item).html(format(new Date(s), "yyyy-MM-dd HH:mm:ss"));
            }
        });
    });
    function searchOrders() {
        $('#qForm').submit();
    }
</script>







